import request from '@/utils/request'

// 查询年级列表
export function listClass(query) {
    return request({
        url: '/system/class/list',
        method: 'get',
        params: query
    })
}

// 查询年级详细
export function getClass(id) {
    return request({
        url: '/system/class/' + id,
        method: 'get'
    })
}

// 新增年级
export function addClass(data) {
    return request({
        url: '/system/class',
        method: 'post',
        data: data
    })
}

// 修改年级
export function updateClass(data) {
    return request({
        url: '/system/class',
        method: 'put',
        data: data
    })
}

// 删除年级
export function delClass(id) {
    return request({
        url: '/system/class/' + id,
        method: 'delete'
    })
}

// 导出年级
export function exportClass(query) {
    return request({
        url: '/system/class/export',
        method: 'get',
        params: query
    })
}